<?php


namespace App\Http\Requests\Admin\Business;


use App\Facade\AppContext;
use App\Http\Requests\BaseFormRequest;
use App\Models\Business\AgentWallet;
use Illuminate\Validation\Rule;

class ArticleSaveFormRequest extends BaseFormRequest
{

    /**
     * Get the validation rules that apply to the request.
     *
     * @return array
     */
    public function rules()
    {
        $image_id = $this->get('image_id', 0);
        if (empty($image_id)) {
            $this->offsetSet('image_id', 0);
        }
        return [
            'title' => [
                'required',
                'between:2,100'
            ]
        ];
    }
}